package com.ly.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@TableName("edoc_entry")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EdocEntry {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("categoryId")
    private Long categoryId;
    @TableField("title")
    private String title;
    @TableField("summary")
    private String summary;
    @TableField("uploaduser")
    private String uploaduser;
    @TableField("createdate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdate;
}
